package com.lixin.springcloud.myhandler;

import com.lixin.springcloud.entities.CommonResult;
import com.lixin.springcloud.entities.Payment;

public class CustomerFallbackHandler {

    public static CommonResult<Payment> handlerException1(Long id, Throwable e) {
        return new CommonResult<>(50001, "代码逻辑异常，fail，自定义方法一进行处理 id=" + id);
    }

    public static CommonResult<Payment> handlerException2(Long id, Throwable e) {
        return new CommonResult<>(50001, "代码逻辑异常，fail，自定义方法二进行处理 id=" + id);
    }

}
